<?php

	$objcfg = new config();
	require_once $_SERVER["DOCUMENT_ROOT"]."/".$objcfg->objEnd."/Class/geral.php";
	
    $geral = new Geral();
    require_once ($geral->conexao());

    $db = new conexao();

    require_once ($geral->departamento());

    $objDept = new Departamento();
    
    require_once ($geral->evtAjax());
    $ajax->printJavascript("/".$objcfg->objEnd."/FreamWork/xajax/");

?>
<style type="text/css">
			<!--
								
				@import url(../../../css/lista/forms_lista.css);
				@import url(../../css/barra_de_rolagem/barra_de_rolagem.css); 
		
				
				
			-->
			
	</style>
	<div id="titulo_forns"> <div id="titulo_fonte">CONSUTAR DEPARTAMENTO</div></div>
<fieldset>
		<legend>BUSCAR</legend>
<table align="left" border="0">
	<tr>
		<td>
			<input type="text" name="texto" id="texto" size="50" value="" onkeyup="xajax_pesquisarDept(document.getElementById('texto').value,document.getElementById('field').value)">

			Buscar por:
			<select name="field" id="field">

				<option value='0'>Departamento</option>
				<option value='1'>Empresa</option>
			
			</select>
		</td>
	</tr>
</table>
</fieldset>
<fieldset>
		<legend>LISTAR DEPARTAMENTO</legend>
		<div id="scroll_consultar_departamento">
		<table>
<div id="resultado">
	<script type="text/javascript">

		xajax_pesquisarDept("%","0");

	</script>
</div>
</table>
</div>
</fieldset>